<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作业4</title>
</head>
<body>
<script>
    var str="";
    for (let i = 1; i < 10; i++) {
        for (let j = 1; j <=i; j++) {
            str+=j+"*"+i+"="+i*j+" ";
        }
        str+="\n";
    }
    console.log(str);
</script>
</body>
</html>